import { downFile, pubRequire } from '@utils/appletPublic.js'
const baseUrl = '/business'
export function getBusinessList(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/business-b`, params, callBack, errBack)
}
// 获取b端分享回流贡献下载id
export function showFileId(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/export-list`, params, callBack, errBack)
}

// 导出b端分享回流贡献excel
export function downFiles(
  params,
  title,
  checked,
  callBack,
  errBack,
  lifeName = ''
) {
  return downFile(
    'get',
    `${baseUrl}/download`,
    params,
    checked,
    title,
    callBack,
    errBack,
    lifeName
  )
}
